ocaml/xenctrl: Check return values from hypercalls
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 27 Jan 2015 20:38:11 +0000 (20:38 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 28 Jan 2015 13:10:56 +0000 (13:10 +0000)
commit3380f5b6270e6fa4b24313f8808e7625e4c5a6ba
tree7232ed9fc98bdd21756e3175da1d65b35f2e6694
parent57255adfe196780c945abafd15959a1c33f13e41
ocaml/xenctrl: Check return values from hypercalls

rather than blindly continuing and possibly using negative values.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
CC: Dave Scott <dave.scott@eu.citrix.com>
Acked-by: David Scott <dave.scott@citrix.com>
tools/ocaml/libs/xc/xenctrl_stubs.c